package com.springboot;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Lee
 */
@SpringBootApplication
public class Day01Application implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("spring boot启动.........");
    }

    public static void main(String[] args) {
        //SpringApplication.run(Day01Application.class, args);


        //第二种写法
        SpringApplication app = new SpringApplication();
        /**
         * 可以对 app 做一些设置 app.set....()
         * 比如关闭logo
         */
        ConfigurableApplicationContext context = app.run(args);
    }


}